<%--
  Created by IntelliJ IDEA.
  User: YYY-Work
  Date: 2017/4/27
  Time: 18:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path;
%>
<!DOCTYPE>
<html>
<body class="skin-blue">

<!-- header logo: style can be found in header.less -->


<!-- getHeader -->
<s:action name="getHeader" namespace="/privilege" executeResult="true"/>
<div class="wrapper row-offcanvas row-offcanvas-left">
    <!-- Left side column. contains the logo and sidebar -->

    <!-- getMenus -->
    <s:action name="getMenus" namespace="/privilege" executeResult="true"/>

    <!-- Right side column. Contains the navbar and content of the page -->
    <aside class="right-side">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>

                <small>医生详情</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
                <li><a href="#">Tables</a></li>
                <li class="active">Data tables</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-xs-12">
                    <div class="box">
                        <div class="box box-danger">
                            <div class="box-body">
                                <form class="form-horizontal" enctype="multipart/form-data" method="post" action="<%=basePath%>/stuff/ajaxAddStuffList.action">

                                    <fieldset>
                                        <!--医院-->
                                        <div class="form-group">
                                            <label class="col-sm-1 control-label">医院</label>
                                            <div class="col-sm-2">
                                                <select class="form-control"  name="entityid" id="entityid">
                                                    <s:iterator value="entityLists" id="entity">
                                                        <option value="${entity.entityid}">${entity.entityName}</option>
                                                    </s:iterator>
                                                </select>
                                            </div>

                                        </div>
                                        <!--科室-->
                                        <div class="form-group">
                                            <label class="col-sm-1 control-label">科室</label>
                                            <div class="col-sm-2">
                                                <select class="form-control" name="departmentid" id="departmentid">
                                                    <s:iterator value="departmentLists" id ="department">
                                                        <option value="${department.departmentid}"> ${department.departmentName}</option>
                                                    </s:iterator>
                                                </select>
                                            </div>
                                        </div>

                                        <!--手机号-->
                                        <div class="form-group">
                                            <label for="stuffNo" class="col-sm-1 control-label">手机号</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" placeholder="手机号" id="stuffNo" name="stuffNo">
                                            </div>
                                        </div>

                                        <!--医生名称-->
                                        <div class="form-group">
                                            <label class="col-sm-1 control-label">姓名</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" id="stuffName"
                                                       placeholder="医生姓名" name="stuffName">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-1 control-label">头像</label>
                                            <div class="col-sm-4">
                                                <input type="file" class="form-control" name="icoUrlImage" id="icoUrlImage">
                                            </div>
                                        </div>

                                        <!--类型-->
                                        <div class="form-group">
                                            <label class="col-sm-1 control-label">类型</label>
                                            <div class="col-sm-1">
                                                <select class="form-control" name="typeid" id="typeid">
                                                    <option value="3">医生</option>
                                                    <option value="2">客服</option>
                                                </select>
                                            </div>

                                        </div>

                                        <!--职称-->
                                        <div class="form-group" id="stuff_Title">
                                            <label for="stuffName" class="col-sm-1 control-label">职称</label>

                                            <div class="col-sm-1">
                                                <select class="form-control" name="stuffTitle" id="stuffTitle">
                                                    <option value="助理医师">助理医师</option>
                                                    <option value="医师">医师</option>
                                                    <option value="主治医师">主治医师</option>
                                                    <option value="副主任医师">副主任医师</option>
                                                    <option value="主任医师">主任医师</option>
                                                    <option value="中医科主任">中医科主任</option>
                                                    <option value="眼科主任">眼科主任</option>
                                                    <option value="首席专家/副主任医师">首席专家/副主任医师</option>
                                                    <option value="首席专家/主任医师">首席专家/主任医师</option>
                                                    <option value="口腔科副主任">口腔科副主任</option>
                                                    <option value="耳鼻咽喉科主任">耳鼻咽喉科主任</option>
                                                    <option value="测试">测试</option>
                                                </select>
                                            </div>

                                        </div>

                                        <!--标签-->
                                        <div class="form-group" id="stuff-Label">
                                            <label for="stuffName" class="col-sm-1 control-label">标签</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" id="stuffLabel"
                                                       placeholder="标签" name="stuffLabel">
                                            </div>
                                        </div>


                                        <!--接单类型-->
                                        <div class="form-group">
                                            <label for="stuffName" class="col-sm-1 control-label">接单类型</label>

                                            <div class="controls col-sm-5">
                                                <label class="radio inline">
                                                    <input name="registerWhere" type="checkbox" value="1">
                                                    免费导诊
                                                </label>
                                                <label class="radio inline">
                                                    <input name="registerWhere" type="checkbox" value="2">
                                                    专家咨询
                                                </label>
                                                <label class="radio inline">
                                                    <input name="registerWhere" type="checkbox" value="3">
                                                    电话咨询
                                                </label>
                                                <label class="radio inline">
                                                    <input name="registerWhere" type="checkbox" value="4">
                                                    挂号送药
                                                </label>
                                                <label class="radio inline">
                                                    <input name="registerWhere" type="checkbox" value="6">
                                                    视频咨询
                                                </label>
                                                <label class="radio inline">
                                                    <input name="registerWhere" type="checkbox" value="7">
                                                    快速问诊
                                                </label>
                                                <label class="radio inline">
                                                    <input name="registerWhere" type="checkbox" value="9">
                                                    健康报告
                                                </label>
                                            </div>

                                        </div>

                                        <!--咨询说明-->
                                        <div class="form-group">
                                            <label for="stuffName" class="col-sm-1" style="text-align:right">擅长疾病</label>
                                            <div class="controls col-sm-4">
                                                <div class="textarea">
                                                    <textarea type="" name="consultInstructions" rows="4" class="form-control" style="width: 100%"></textarea>
                                                </div>
                                            </div>
                                        </div>

                                        <!--咨询范围-->
                                        <div class="form-group">
                                            <label class="col-sm-1" style="text-align:right">推荐咨询</label>
                                            <div class="controls col-sm-4">
                                                <div class="textarea">
                                                    <textarea type="" name="consultRecommend" rows="4" class="form-control" style="width: 100%"></textarea>
                                                </div>
                                            </div>
                                        </div>

                                        <!--咨询印象-->
                                        <div class="form-group">
                                            <label class="col-sm-1" style="text-align:right">咨询印象</label>
                                            <div class="controls col-sm-4">
                                                <div class="textarea">
                                                    <textarea type="" name="consultImpression" rows="4" class="form-control" style="width: 100%"></textarea>
                                                </div>
                                            </div>
                                        </div>

                                        <!--详细介绍-->
                                        <div class="form-group">
                                            <label class="col-sm-1" style="text-align:right">医生简介</label>
                                            <div class="controls col-sm-4">
                                                <div class="textarea">
                                                    <textarea type="" rows="4" name="briefInfo" style="width: 100%" class="form-control"></textarea>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-1" style="text-align: right">是否可见</label>
                                            <div class="controls col-sm-2">
                                                <label class="radio inline">
                                                    <input  name="isUserRegisterVisible" type="radio" checked="checked" value="1">
                                                    可见
                                                </label>
                                                <label class="radio inline">
                                                    <input  name="isUserRegisterVisible" type="radio" value="2">
                                                    不可见
                                                </label>
                                            </div>
                                        </div>

                                        <!--是否启用-->
                                        <div class="form-group">

                                            <label class="col-sm-1" style="text-align: right">是否启用</label>
                                            <div class="controls col-sm-2">
                                                <label class="radio inline">
                                                    <input name="isUsedFlag" type="radio" checked="checked" value="0">
                                                    启用
                                                </label>
                                                <label class="radio inline">
                                                    <input name="isUsedFlag" type="radio" value="1">
                                                    不启用
                                                </label>
                                            </div>

                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-1 control-label"></label>

                                            <div class="controls col-sm-2">
                                                <button class="btn btn-success" type="submit">新增</button>
                                            </div>
                                        </div>

                                    </fieldset>
                                </form>
                            </div><!-- /.box-body -->
                        </div><!-- /.box -->

                    </div><!-- /.box -->


                </div>
            </div>

        </section><!-- /.content -->
    </aside><!-- /.right-side -->
</div><!-- ./wrapper -->

</body>

<head>
    <title>Title</title>
    <meta charset="UTF-8">
    <title>AdminLTE | Data Tables</title>
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>

    <script type="text/javascript" src="<%=basePath%>/js/admin/utils.js"></script>
    <script type="text/javascript" src="<%=basePath%>/js/base/listtable.js"></script>
    <link href="<%=basePath%>/css/fileinput.css" media="all" rel="stylesheet" type="text/css"/>
    <link href="<%=basePath%>/themes/explorer/theme.css" media="all" rel="stylesheet" type="text/css"/>
    <script src="<%=basePath%>/js/sortable.js" type="text/javascript"></script>
    <script src="<%=basePath%>/js/fileinput.js" type="text/javascript"></script>
    <script src="<%=basePath%>/js/locales/zh.js" type="text/javascript"></script>
    <script src="<%=basePath%>/themes/explorer/theme.js" type="text/javascript"></script>

</head>

<script type="text/javascript">
    $("#icoUrlImage").fileinput({
        language: 'zh', //设置语言 
        showUpload: false, //是否显示上传按钮  
        showCaption: true,//是否显示标题  
        allowedPreviewTypes: ['image'],
        allowedFileTypes: ['image'],
        allowedFileExtensions:  ['jpg', 'png'],
    });
</script>
</html>
